﻿using System;
using System.Drawing;

namespace oled
{
    // 取模方向 与 扫描模式共同作用
    class OLED_Align_Mode
    {
        public const bool Big_endian = false;    //大端对齐模式 顺向
        public const bool Little_endian = true;  //小端对齐模式 逆向
    }

    enum OLED_Scan_Mode
    {
        //Vertical_scan = 0,          //垂直扫描(字节垂直,数据垂直)
        //Horizontal_scan = 1,        //水平扫描(字节水平,数据水平)
        VertiByte_HoriScan = 2, //列行式(字节垂直,数据水平)
        HoriByte_Vertiscan = 3, //行列式(字节水平,数据垂直)
    }
    public class OLED_Param
    {
        public int X;
        public int Y;
        public Byte data;
        public Graphics Graphic;
        public OLED_Param(int x, int y)
        {
            X = x;
            Y = y;
        }
        public OLED_Param(int x, int y, Byte bytes)
        {
            X = x;
            Y = y;
            data = bytes;
        }
        public OLED_Param(int x, int y, Byte bytes, Graphics G)
        {
            X = x;
            Y = y;
            data = bytes;
            Graphic = G;
        }
    }
}
